package com.jr.main;

import com.jr.pojo.Dept;
import com.jr.util.C3P0DBHelper;
import com.jr.util.DBHelper;

import java.util.ArrayList;

public class MainTest {
    public static void main(String[] args) {
        String sql = "select * from dept ";
        C3P0DBHelper cdb = new C3P0DBHelper();
        ArrayList<Dept> arrayList = cdb.dtQuery(sql,Dept.class);
        for (Dept d:arrayList){
            System.out.println(d);
        }
    }
}
